home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8004 / 8004.xpi / content / prefs.xul < prev    next >
Extensible Markup Language  |  2010-01-30  |  8KB  |  194 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3.  
  4. <!-- ***** BEGIN LICENSE BLOCK *****
  5.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  6.    -
  7.    - The contents of this file are subject to the Mozilla Public License Version
  8.    - 1.1 (the "License"); you may not use this file except in compliance with
  9.    - the License. You may obtain a copy of the License at
  10.    - http://www.mozilla.org/MPL/
  11.    -
  12.    - Software distributed under the License is distributed on an "AS IS" basis,
  13.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14.    - for the specific language governing rights and limitations under the
  15.    - License.
  16.    -
  17.    - The Original Code is Chromatabs.
  18.    -
  19.    - The Initial Developer of the Original Code is Mozilla.
  20.    - Portions created by the Initial Developer are Copyright (C) 2006
  21.    - the Initial Developer. All Rights Reserved.
  22.    -
  23.    - Contributor(s):
  24.    -  Justin Dolske <dolske@mozilla.com> (Original Author)
  25.    -  Gary Calpo <gcalpo@gmail.com> (Updated to work w/ Firefox 3.0-3.6)
  26.    -
  27.    - Alternatively, the contents of this file may be used under the terms of
  28.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  29.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30.    - in which case the provisions of the GPL or the LGPL are applicable instead
  31.    - of those above. If you wish to allow use of your version of this file only
  32.    - under the terms of either the GPL or the LGPL, and not to allow others to
  33.    - use your version of this file under the terms of the MPL, indicate your
  34.    - decision by deleting the provisions above and replace them with the notice
  35.    - and other provisions required by the LGPL or the GPL. If you do not delete
  36.    - the provisions above, a recipient may use your version of this file under
  37.    - the terms of any one of the MPL, the GPL or the LGPL.
  38.    -
  39.    - ***** END LICENSE BLOCK ***** -->
  40.  
  41. <prefwindow id="chromatabs-options-dialog"
  42.     type="prefwindow"
  43.     title="ChromaTabs Plus - Options"
  44.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  45.  
  46.     <prefpane id="prefs_general" label="Tab Coloring" image="chrome://chromatabs/skin/chromatabs-icon.png">
  47.         <preferences>
  48.             
  49.             <!-- original preferences -->
  50.             <preference id="colorMode" name="extensions.chromatabs.colorMode"  type="string"/>
  51.             <preference id="hashFallback" name="extensions.chromatabs.hashFallback"  type="bool"/>
  52.             
  53.             <!-- v2.3.0 preferences -->
  54.             <preference id="subdomainsTreatedEqually" name="extensions.chromatabs.hashFallback.subdomainsTreatedEqually"  type="bool"/>
  55.             <preference id="clearTabCloseButtons" name="extensions.chromatabs.clearTabCloseButtons"  type="bool"/>
  56.  
  57.             <preference id="focusedMaxSaturation"  name="extensions.chromatabs.focusedTab.maxSaturation"  type="int"/>
  58.             <preference id="focusedMinLuminance"  name="extensions.chromatabs.focusedTab.minLuminance"  type="int"/>
  59.             <preference id="focusedMaxLuminance"  name="extensions.chromatabs.focusedTab.maxLuminance"  type="int"/>
  60.             <preference id="focusedOpacity"  name="extensions.chromatabs.focusedTab.opacity"  type="int"/>
  61.             
  62.             <preference id="backgroundMaxSaturation"  name="extensions.chromatabs.backgroundTabs.maxSaturation"  type="int"/>
  63.             <preference id="backgroundMinLuminance"  name="extensions.chromatabs.backgroundTabs.minLuminance"  type="int"/>
  64.             <preference id="backgroundMaxLuminance"  name="extensions.chromatabs.backgroundTabs.maxLuminance"  type="int"/>
  65.             <preference id="backgroundOpacity"  name="extensions.chromatabs.backgroundTabs.opacity"  type="int"/>
  66.             
  67.             <preference id="hoverMaxSaturation"  name="extensions.chromatabs.hoverTab.maxSaturation"  type="int"/>
  68.             <preference id="hoverMinLuminance"  name="extensions.chromatabs.hoverTab.minLuminance"  type="int"/>
  69.             <preference id="hoverMaxLuminance"  name="extensions.chromatabs.hoverTab.maxLuminance"  type="int"/>
  70.             <preference id="hoverOpacity"  name="extensions.chromatabs.hoverTab.opacity"  type="int"/>
  71.             
  72.         </preferences>
  73.  
  74.         <groupbox>
  75.             <caption label="Primary Tab Color"/>
  76.             <radiogroup preference="colorMode">
  77.                 <radio label="Use most frequent color from site icon." value="icon-frequency"/>
  78.                 <radio label="Use average color from site icon." value="icon-average"/>
  79.                 <radio label="Pick a color unique to site name." value="hash"/>
  80.             </radiogroup>
  81.         </groupbox>
  82.         
  83.         <groupbox>
  84.             <caption label="If the site icon has no color or cannot be found..."/>
  85.             <radiogroup preference="hashFallback">
  86.                 <radio label="Pick a color unique to site name." value="true"/>
  87.                 <radio label="Do nothing." value="false"/>
  88.             </radiogroup>
  89.         </groupbox>
  90.  
  91.         <groupbox>
  92.             <caption label="When picking a color based on site name..."/>
  93.             <radiogroup preference="subdomainsTreatedEqually">
  94.                 <radio label="Subdomains of the same domain share one color." value="true"/>
  95.                 <radio label="Different subdomains use different colors." value="false"/>
  96.             </radiogroup>
  97.         </groupbox>
  98.         
  99.         <groupbox>
  100.             <caption label="Customize Tab Colors"/>
  101.             <grid>
  102.                 <columns>
  103.                     <column flex="3"/>
  104.                     <column flex="1"/>
  105.                     <column flex="1"/>
  106.                     <column flex="1"/>
  107.                 </columns>
  108.                 <rows>
  109.                     <row>
  110.                         <label value=""/>
  111.                         <label value="Current Tab"/>
  112.                         <label value="Other Tabs"/>
  113.                         <label value="When Hovering"/>
  114.                     </row>
  115.                 
  116.                     <row>
  117.                         <label value="Maximum saturation: "/>
  118.                         <hbox align="center">
  119.                             <textbox preference="focusedMaxSaturation" size="3" maxlength="3"/>
  120.                             <label value="%"/>
  121.                         </hbox>
  122.                         <hbox align="center">
  123.                             <textbox preference="backgroundMaxSaturation" size="3" maxlength="3"/>
  124.                             <label value="%"/>
  125.                         </hbox>
  126.                         <hbox align="center">
  127.                             <textbox preference="hoverMaxSaturation" size="3" maxlength="3"/>
  128.                             <label value="%"/>
  129.                         </hbox>
  130.                     </row>
  131.                     
  132.                     <row>
  133.                         <label value="Minimum luminance: "/>
  134.                         <hbox align="center">
  135.                             <textbox preference="focusedMinLuminance" size="3" maxlength="3"/>
  136.                             <label value="%"/>
  137.                         </hbox>
  138.                         <hbox align="center">
  139.                             <textbox preference="backgroundMinLuminance" size="3" maxlength="3"/>
  140.                             <label value="%"/>
  141.                         </hbox>
  142.                         <hbox align="center">
  143.                             <textbox preference="hoverMinLuminance" size="3" maxlength="3"/>
  144.                             <label value="%"/>
  145.                         </hbox>
  146.                     </row>
  147.                     
  148.                     <row>
  149.                         <label value="Maximum luminance: "/>
  150.                         <hbox align="center">
  151.                             <textbox preference="focusedMaxLuminance" size="3" maxlength="3"/>
  152.                             <label value="%"/>
  153.                         </hbox>
  154.                         <hbox align="center">
  155.                             <textbox preference="backgroundMaxLuminance" size="3" maxlength="3"/>
  156.                             <label value="%"/>
  157.                         </hbox>
  158.                         <hbox align="center">
  159.                             <textbox preference="hoverMaxLuminance" size="3" maxlength="3"/>
  160.                             <label value="%"/>
  161.                         </hbox>
  162.                     </row>
  163.                     
  164.                     <row>
  165.                         <label value="Opacity: "/>
  166.                         <hbox align="center">
  167.                             <textbox preference="focusedOpacity" size="3" maxlength="3"/>
  168.                             <label value="%"/>
  169.                         </hbox>
  170.                         <hbox align="center">
  171.                             <textbox preference="backgroundOpacity" size="3" maxlength="3"/>
  172.                             <label value="%"/>
  173.                         </hbox>
  174.                         <hbox align="center">
  175.                             <textbox preference="hoverOpacity" size="3" maxlength="3"/>
  176.                             <label value="%"/>
  177.                         </hbox>
  178.                     </row>
  179.                     
  180.                 </rows>
  181.             </grid>
  182.         </groupbox>
  183.         
  184.         <groupbox>
  185.             <caption label="Tab Close Buttons"/>
  186.             <radiogroup preference="clearTabCloseButtons">
  187.                 <radio label="Use clear buttons that show more of the tab's color." value="true"/>
  188.                 <radio label="Use default buttons." value="false"/>
  189.             </radiogroup>
  190.         </groupbox>
  191.         
  192.     </prefpane>
  193. </prefwindow>
  194.